#include "CImage.h"
#include "ITexture.h"
#include "IGraphic.h"

BEGIN_WARE

VBOOL CImage::SaveToFile( const VCHAR* szSaveFileName, ITexture::ETextureFileType eFileType, EWareFormat eFormat )
{
	if( !m_pTexture )
		return VFALSE;

	return m_pTexture->SaveToFile( szSaveFileName, m_Rect, eFileType, eFormat );
}

END_WARE